using System;
using System.Collections;
using System.Xml.Serialization;

namespace SQLRunnerLib.Project
{
	/// <summary>
	/// A Project contains a collection of folders. Each folder
	/// can contain other folders, generally these will be subfolders
	/// a a list of files.
	/// A folder indicates if all subfolders are included and also if
	/// all the files in the root path are included. If all the subfolders
	/// are included and the allfiles flag is enabled, all files in the
	/// subfolders are also included.
	/// </summary>
	[Serializable()]
	public class Folder
	{
		public Folder(){}

		public bool IncludeAllFiles = false;
		public bool IncludeAllSubFolders = false;
		public string Path = "";

		[XmlArrayItem("Folder", typeof(Folder))]
		public ArrayList Folders = new ArrayList();


		[XmlArrayItem("File", typeof(string))]
		public ArrayList Files = new ArrayList();
	}
}
